* {
    padding: 0;
    margin: 0;
    outline: none;
    user-select: none;
    font-display: sawp;
}

body {
    width: 100vw;
    height: 100vh;
    background: url('../images/bilibili.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: grid;
    place-items: center;
}

#continer {
    overflow: hidden;
    position: relative;
    width: 900px;
    height: 600px;
    border-radius: 16px;
    box-shadow: 2px 2px 10px rgba(117, 115, 115, 0.453);
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}

#continer::before {
    content: '';
    position: absolute;
    background: #fff3;
    width: 100%;
    height: 100%;
    z-index: -1;
    -webkit-backdrop-filter: blur(15px);
    -moz-backdrop-filter: blur(15px);
    -ms-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

#continer > * {
    height: 100%;
}

#gameBox {
    width: 600px;
    box-sizing: padding-box;
    display: grid;
    place-items: center;
}

#wall {
    width: 1px;
    background: #7773;
}

#mesBox {
    width: 300px;
}

#mesBox > .preview {
    margin: 2.6rem 30px;
    width: 240px;
    height: 240px;
    background: #abf3;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

#mesBox > .preview::after {
    content: '预览';
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 2.3rem;
    background: #0001;
    color: #abf;
}

#mesBox > .btns {
    margin: 0 2rem 1.5rem;
    padding: 0.6rem;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    background: #4b8df6;
    cursor: pointer;
}

#mesBox > .step {
    text-align: center;
    margin-bottom: 1rem;
}

#canvas {
    background: #fff6;
    cursor: pointer;
}

#copyRight {
    position: absolute;
    bottom: 0.3rem;
    right: -0.3rem;
    font-size: 12px;
    color: grey;
    transform: scale(0.7);
}

.modals {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: #0004;
    backdrop-filter: blur(5px);
    display: grid;
    place-items: center;
}

#upload,
.hide {
    display: none !important;
}

.modals > .content {
    position: absolute;
    width: 900px;
    height: 600px;
    background: #fff;
    overflow: hidden;
    border-radius: 15px;
    animation: fadein 0.275s linear;
}

.modals > .content > .title {
    text-align: center;
    display: block;
    padding: 10px;
    background: #abf3;
    border: none;
}

.modals > .content > .title > .close {
    position: absolute;
    display: inline-block;
    width: 42px;
    height: 42px;
    top: 0;
    right: 3px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 275ms linear;
}
.modals > .content > .title > .close:hover {
    transform: rotate(180deg);
}

.modals > .content > .body {
    height: 558px;
    width: 900px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    overflow-y: auto;
}

.modals > .content > .body > .upload {
    font-size: 48px !important;
    color: #fff;
    background: #eee;
    display: grid;
    place-items: center;
}

.modals > .content > .body > .imgs {
    margin: 15px 20px;
    width: 258px;
    height: 146px;
    float: left;
    cursor: pointer;
    border: none;
    border-radius: 7px;
    box-sizing: border-box;
    transition: transform 275ms linear;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.modals > .content > .body > .imgs:nth-last-child() {
    clear: both;
}

.modals > .content > .body > .imgs:hover {
    transform: scale(1.02);
}

.toast {
    position: absolute;
    margin: 5rem calc(50% - 170px);
    padding: 0.5rem 1rem 1rem 1rem;
    font-size: 1rem;
    width: 340px;
    height: auto;
    min-height: 1rem;
    border-radius: 7px;
    text-align: center;
    background: #fff;
    transition: transform 275ms linear;
    animation: fadein 275ms linear;
    box-shadow: 0 3px 6px #4446, 0 6px 12px #4444;
}

.toast > .title {
    font-size: 1.2rem;
}

.diffi-wrap {
    display: flex;
}

.difficultyPreview {
    padding: 29px;
}

.diffiPreview {
    background: #ddd5;
    margin-left: 3rem;
}

.diffi {
    position: relative;
    transform: rotate(-90deg);
    width: 300px;
}
.diffi::after {
    content: attr(data-value);
    position: absolute;
    height: 100%;
    font-size: 22px;
    transform: rotate(90deg) translateY(-3rem);
    text-align: center;
}

@keyframes fadein {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeout {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(25px);
    }
}
